A simple description of PHP variables and the definition of constants define common variables static variable pass address assignment (simple reference) PHP Super global variable $globals and other usages.
Variables are used to store values, such as
#一, PHP variable definition: Variables are used to store values, such as numbers, text strings or arrays, V: string/integer/double/array/object
Naming rules:
1. The variable name of PHP is case-sensitive. 2. The variable name must begin with $3,
Last month I specifically introduced the PHP introductory tutorial on the basic syntax of PHP introductory learning, mainly introduced several commonly used PHP tags, the composition of PHP statements, PHP comments, and so on, today's PHP
Document directory
I. Basic Knowledge
Ii. Pre-Defined variables
Iii. variable range
Iv. Variable
V. php external variables
I am honored to have been recommended to the homepage by the moderator in my previous article. I am so excited.
Analysis of variable reference and variable destruction mechanism in PHP, PHP destruction
This paper analyzes the variable reference and the mechanism of variable destruction in PHP. Share to everyone for your reference. The specific analysis is as
Php global variables, which are defined by php global variables. Php global variables, php global variables define PHP global variables PHP pre-defines several Super global variables (superglobals), which means that they can use php global variables
Php pre-defined variable help (with instance ). From php4.1.0, the preferred method for getting external variables is to use the Superglobal variables mentioned below. Prior to this, people were either dependent on register_globals, or long
The preferred method for php to obtain external variables is to use the hyperglobal variables mentioned below. Prior to this, people were either dependent on register_globals or long pre-defined PHP array ($ HTTP _ * _ VARS ). From PHP5.0.0, PHP
From PHP 4.1.0, the preferred method for obtaining external variables is to use the Super global variables mentioned below. Before that, people were either dependent on register_globals or long predefined PHP arrays ($HTTP _*_vars). From PHP 5.0.0,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.